package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_message;
import com.balakitbbs.dao.Bala_messageDaoIF;
   /**
    * bala_message Service类
    */ 
@Service
public class Bala_messageService{
@Autowired
private Bala_messageDaoIF dao;
	public void addBala_message(Bala_message bala_message){
		dao.addBala_message(bala_message);
	}

	public void delBala_message(String id){
		dao.delBala_message(id);
	}

	public void delBala_messageTrue(String id){
		dao.delBala_messageTrue(id);
	}

	public void updateBala_message(Bala_message bala_message){
		dao.updateBala_message(bala_message);
	}

	public Bala_message selectBala_messageById(String id){
		return dao.selectBala_messageByID(id);
	}

	public int selectBala_messageCount(){
		return dao.selectBala_messageCount();
	}

	public int selectBala_messageCountAll(){
		return dao.selectBala_messageCountAll();
	}

	public List<Bala_message> selectBala_messagesByPage(SearchPageUtil spu){
		return dao.selectBala_messagesByPage(spu);
	}

	public int selectBala_messagesByPOJOCount(Bala_message bala_message){
		return dao.selectBala_messagesByPOJOCount(bala_message);
	}

	public List<Bala_message> selectBala_messagesByPOJO(Bala_message bala_message){
		return dao.selectBala_messagesByPOJO(bala_message);
	}

	public List<Bala_message> selectBala_messagesByPojoPage(SearchPageUtil spu,Bala_message bala_message){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_message);
		return dao.selectBala_messagesByPojoPage(map);
	}

}

